import Vue from 'vue'
import App from './App.vue'
import router from './router'
// 导入vant
import Vant from 'vant'
import 'vant/lib/index.css'
// 全局css
import './assets/css/global.css'
// 导入字体css
import './assets/font/iconfont.css'
// 导入懒加载指令
import VueLazyload from 'vue-lazyload'

import axios from 'axios'
import dayjs from 'dayjs'
import qs from 'qs'
axios.defaults.baseURL = 'http://www.liulongbin.top:3005/'
// axios.interceptors.response.use(function (response) {
//   // 对响应数据做点什么
//   response = response.data
//   return response
// }, function (error) {
//   // 对响应错误做点什么
//   return Promise.reject(error)
// })
Vue.prototype.$http = axios
Vue.prototype.$dayjs = dayjs
Vue.prototype.$qs = qs

Vue.config.productionTip = false

Vue.use(Vant)

Vue.use(VueLazyload)

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
